<template>
  <div>
    <van-row>
      <van-col span="6"><lef></lef></van-col>
      <van-col span="18">
        <van-row>
          <van-col span="24"><headers></headers></van-col>
        </van-row>
        <van-row>
          <ul>
            <li v-for="i in task_list" :key="i.id"><a :href="'/my_task_handle?id='+i.id">{{i.title}}</a></li>
          </ul>
        </van-row>


      </van-col>
    </van-row>


  </div>
</template>

<script>
import Lef from "@/components/veiw/lef";
import Headers from "@/components/veiw/headers";
import myaxios from "@/http/axios";
export default {
  name: "mytask",
  components: {Headers, Lef},
  data() {
    return {
      data1: '',
      task_list:[],
      id:localStorage.getItem('userid')
    }
  },
  methods: {
    get_mytask(){
      myaxios('mytaskaudit?id='+this.id,'get').then(res=>{
        this.task_list = res.list
      })
    }
  },
  mounted() {
      this.get_mytask()
  }
}
</script>

<style scoped>

</style>